#设置cmake最低版本
cmake_minimum_required(VERSION 3.4.1)

#设置项目名称
project(tst_qt3d_auto_animation)



#引入add_module模板文件
include(${ISSQTTESTROOTDIR}/cmake/add_module.cmake)

#设置测试类型，auto为自动测试，manual为手动测试,即test目录下的文件夹名
set(TEST_TYPE auto)
#设置模块名
set(MODULE qt3d)
#设置需要链接的模块
set(LinkQt Core 3DAnimation Widgets Concurrent)
#设置需要链接的模块的私有模块
set(LinkQtPrivate Core 3DAnimation)
#设置排除的文件夹
set(EXCLUDE domain qml-qtquicktest)
#多级目录
set(TEST_ITEMS ${TEST_ITEMS}
 core/common
 animation/qanimationaspect
 animation/qanimationcliploader
 animation/qclipanimator
 animation/qblendedclipanimator
 animation/qchannelmapper
 animation/qclipblendvalue
 animation/qanimationcontroller
 animation/qanimationgroup
 animation/qkeyframeanimation
 animation/qmorphinganimation
 animation/qmorphtarget
 animation/qvertexblendanimation
 animation/qclock
 animation/qskeletonmapping
 animation/qcallbackmapping
)

message(Qt${QT_VERSION_MAJOR}3DAnimationPrivate_DIR=${Qt${QT_VERSION_MAJOR}3DAnimationPrivate_DIR})

if(DEFINED Qt${QT_VERSION_MAJOR}3DAnimationPrivate_DIR AND NOT "${Qt${QT_VERSION_MAJOR}3DAnimationPrivate_DIR}" STREQUAL "")
    # Private Test
    list(APPEND TEST_ITEMS
        animation/qanimationaspect
        animation/animationclip
        animation/fcurve
        animation/functionrangefinder
        animation/bezierevaluator
        animation/clipanimator
        animation/blendedclipanimator
        animation/channelmapper
        animation/channelmapping
        animation/qlerpclipblend
        animation/clipblendnodemanager
        animation/clipblendnode
        animation/lerpclipblend
        animation/clipblendnodevisitor
        animation/qadditiveclipblend
        animation/additiveclipblend
        animation/clipblendvalue
        animation/animationutils
        animation/qabstractanimation
        animation/clock
        animation/skeleton
        animation/findrunningclipanimatorsjob
        animation/updatepropertymapjob
        animation/qchannelmapping
    )
else()
    set(EXCLUDE_SRC ${EXCLUDE_SRC}
         core/common/qbackendnodetester.cpp
         core/common/qbackendnodetester.h
     )
endif()

set(PLUGINS QOpenHarmonyPlatformIntegrationPlugin)
if(DEFINED TEST_ITEMS)
    create_library(${TEST_ITEMS})
endif()

